package com.project.dao;

import com.project.entity.JobApply;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 12:47
 * @param:
 * @return:
 */
public interface JobApplyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(JobApply record);

    int insertSelective(JobApply record);

    JobApply selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(JobApply record);

    int updateByPrimaryKey(JobApply record);

    /**
     * author: WheelChen
     * date: 2017/9/9
     * function: 根据应聘表模糊查找
     *
     * @param jobApply
     * @return
     */
    List<JobApply> selectByCondition(JobApply jobApply);

    /**
     * author: WheelChen
     * date: 2017/9/19
     * function: 根据学生信息表idList批量删除
     *
     * @param userIdList
     * @return
     */
    int deleteBatchByStudentInfoIdList(List userIdList);

    /**
     * author: WheelChen
     * date: 2017/11/22
     * function: 检查对应学生是否已投递简历
     *
     * @param jobApply
     * @return
     */
    int checkIsDeliveredExist(JobApply jobApply);
}
